package com.example.administrator.twopagelibrary.view.activity;



import android.view.View;

import com.example.administrator.commonlibrary.bean.MyBean;
import com.example.administrator.commonlibrary.contract.activity.MaiAcivityContract;
import com.example.administrator.commonlibrary.utils.rxjava.RxBus;
import com.example.administrator.twopagelibrary.R;
import com.example.administrator.twopagelibrary.R2;
import com.example.administrator.twopagelibrary.presenter.activity.MaiActivityPresenter;
import com.example.administrator.twopagelibrary.twobase.TwoBaseViewActivity;

import javax.inject.Inject;

import butterknife.OnClick;


public class MIntent2Activity extends TwoBaseViewActivity<MaiAcivityContract.Presenter> implements MaiAcivityContract.View {

    @Inject
    MaiActivityPresenter presenter;
    @Override
    protected int onLayout() {
        return R.layout.two_activity_mintent2;
    }

    @Override
    protected String setPageTitle() {
        return "mintent2";
    }

    @Override
    protected MaiAcivityContract.Presenter initPresenter() {
        return presenter;
    }

    @Override
    protected void myOnCreate() {
    }

    @OnClick({R2.id.colse,R2.id.rxjava_send})
    public void onViewClicked(View view) {
        int id = view.getId();
        if (id==R.id.colse)
                {

        }else if (id==R.id.rxjava_send){
            RxBus.getInstance().post(new MyBean());
        }
    }
}
